{extend name="Public:base"/}

{block name="main"}
<div class="box-info">
    <form id="myform" action="{:U('Slide/edit')}" method="post">

        <div class="form-group row">
            <label class="form-control-label col-md-2 text-right"><font color="red">*</font>名称</label>
            <div class="col-md-6">
                <input type="text" id="name" name="name" value="{$vo.name}" class="form-control"/>
            </div>
        </div>

        <div class="form-group row">
            <label class="form-control-label col-md-2 text-right">幻灯片宽</label>
            <div class="col-md-6">
                <input type="text" id="width" name="width" value="{$vo.width}" class="form-control"/>
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2 text-right">幻灯片高</label>
            <div class="col-md-6">
                <input type="text" name="height" value="{$vo.height}" class="form-control"/>
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2 text-right">图片数量</label>
            <div class="col-md-6">
                <input type="text" name="num" value="{$vo.num}" class="form-control"/>
            </div>
        </div>
        <div class="form-group row">
            <label class="form-control-label col-md-2 text-right">状态</label>
            <div class="col-md-6">
                {:Form::radio(array('field'=>'status','options'=>array('1'=>L('enable'),'0'=>L('disable'))),$vo['status'])}
            </div>
        </div>

        <div class="form-actions">
            <input type="hidden" name="id" value="{$vo.id}"/>
            <input type="submit" value="确认" class="btn btn-primary ajax_form_edit"/>
            <a href="{:U('Slide/index')}" class="btn btn-primary">返回广告列表</a>
        </div>
    </form>
</div>
{/block}